/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package main.Memory;

/**
 *
 * @author usuario
 */

public class Cooldown {
    
    double endTime;
    
    public Cooldown(double ms) {
        double timeInMillis = System.currentTimeMillis();
        endTime =  timeInMillis + ms;
    }
    
    public boolean hasEnded() {
        if(System.currentTimeMillis()>=endTime)
            return true;
        return false;
    }
    
}
